package com.ruoyi.system.service.impl.user;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.user.VsDramasUserCryptocardMapper;
import com.ruoyi.system.domain.user.VsDramasUserCryptocard;
import com.ruoyi.system.service.user.IVsDramasUserCryptocardService;

/**
 * 用户卡密记录Service业务层处理
 * 
 * @author zzx
 * @date 2024-04-30
 */
@Service
public class VsDramasUserCryptocardServiceImpl implements IVsDramasUserCryptocardService 
{
    @Autowired
    private VsDramasUserCryptocardMapper vsDramasUserCryptocardMapper;

    /**
     * 查询用户卡密记录
     * 
     * @param id 用户卡密记录主键
     * @return 用户卡密记录
     */
    @Override
    public VsDramasUserCryptocard selectVsDramasUserCryptocardById(Long id)
    {
        return vsDramasUserCryptocardMapper.selectVsDramasUserCryptocardById(id);
    }

    /**
     * 查询用户卡密记录列表
     * 
     * @param vsDramasUserCryptocard 用户卡密记录
     * @return 用户卡密记录
     */
    @Override
    public List<VsDramasUserCryptocard> selectVsDramasUserCryptocardList(VsDramasUserCryptocard vsDramasUserCryptocard)
    {
        return vsDramasUserCryptocardMapper.selectVsDramasUserCryptocardList(vsDramasUserCryptocard);
    }

    /**
     * 新增用户卡密记录
     * 
     * @param vsDramasUserCryptocard 用户卡密记录
     * @return 结果
     */
    @Override
    public int insertVsDramasUserCryptocard(VsDramasUserCryptocard vsDramasUserCryptocard)
    {
        vsDramasUserCryptocard.setCreatetime(System.currentTimeMillis());
        return vsDramasUserCryptocardMapper.insertVsDramasUserCryptocard(vsDramasUserCryptocard);
    }

    /**
     * 修改用户卡密记录
     * 
     * @param vsDramasUserCryptocard 用户卡密记录
     * @return 结果
     */
    @Override
    public int updateVsDramasUserCryptocard(VsDramasUserCryptocard vsDramasUserCryptocard)
    {
        return vsDramasUserCryptocardMapper.updateVsDramasUserCryptocard(vsDramasUserCryptocard);
    }

    /**
     * 批量删除用户卡密记录
     * 
     * @param ids 需要删除的用户卡密记录主键
     * @return 结果
     */
    @Override
    public int deleteVsDramasUserCryptocardByIds(Long[] ids)
    {
        return vsDramasUserCryptocardMapper.deleteVsDramasUserCryptocardByIds(ids);
    }

    /**
     * 删除用户卡密记录信息
     * 
     * @param id 用户卡密记录主键
     * @return 结果
     */
    @Override
    public int deleteVsDramasUserCryptocardById(Long id)
    {
        return vsDramasUserCryptocardMapper.deleteVsDramasUserCryptocardById(id);
    }
}
